package com.itheima.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @BelongsProject: project-springbootdemo02
 * @BelongsPackage: com.itheima.pojo
 * @Author: jiangyi
 * @CreateTime: 2025-08-02  11:45
 * @Description: TODO
 * @Version: 1.0
 */
public class ClazzQueryParam {

        private Integer page ; //页码
        private Integer pageSize ; //每页展示记录数
        private String name; //姓名
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private LocalDate begin; //入职开始时间
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private LocalDate end; //入职结束时间

        public ClazzQueryParam() {
        }

        public ClazzQueryParam(Integer page, Integer pageSize, String name, Integer gender, LocalDate begin, LocalDate end) {
            this.page = page;
            this.pageSize = pageSize;
            this.name = name;

            this.begin = begin;
            this.end = end;
        }

        public Integer getPage() {
            return page;
        }

        public void setPage(Integer page) {
            this.page = page == null ? 1 : page;
        }

        public Integer getPageSize() {
            return pageSize;
        }

        public void setPageSize(Integer pageSize) {
            this.pageSize = pageSize == null ? 10 : pageSize;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }



        public LocalDate getBegin() {
            return begin;
        }

        public void setBegin(LocalDate begin) {
            this.begin = begin;
        }

        public LocalDate getEnd() {
            return end;
        }

        public void setEnd(LocalDate end) {
            this.end = end;
        }
    }



